package entity

import (
	"pids-cloud-server/app/common"
)

type CpuState struct {
	ID         int64             `gorm:"column:id;primary_key"`
	HostName   string            `gorm:"column:host_name"`
	User       string            `gorm:"column:user"`
	Sys        float64           `gorm:"column:sys"`
	Idle       float64           `gorm:"column:idle"`
	Iowait     float64           `gorm:"column:iowait"`
	Irq        string            `gorm:"column:irq"`
	Soft       string            `gorm:"column:soft"`
	DateStr    string            `gorm:"column:date_str"`
	CreateTime common.CustomTime `gorm:"column:create_time" swaggertype:"primitive,string"`
	Type       DeviceType        `gorm:"-"`
}
